package com.blog.mapper;

import com.blog.pojo.Label;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface LabelMapper {
    boolean add(@Param("id") String id,@Param("user_id") String user_id, @Param("name") String name, @Param("describe") String describe);

    List<Label> get(Map<String,Object> map);
    Integer getCount(Map<String,Object> map);

    boolean delete(String id);

    boolean update(Map<String,Object> map);
}
